Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 3a2212f8c2812bf82c0974b4321028e5e0bfc2ec


Parents : 40f2bbd
Author : Mark Qvist <bc7291552be7a58f361522990465165c>
Signature : T66BB85Valid, signed by author
Date : 2026-05-29T10:32:46+02:00

Updated build automation

Changes

2 files changed, 11 insertions(+), 0 deletions(-)

M Makefile +6
M setup.py +5

Diff

diff --git a/Makefile b/Makefile
index c012aa79..ffbaf7fc 100644
--- a/Makefile
+++ b/Makefile
@@ -89,6 +89,12 @@ build_winexe: prepare_win_pkg
release: build_wheel apk fetchapk
upload:
+ @echo Ready to publish release over Reticulum
+ @read VOID
+ rngit release rns://7649a50d84610232d1416b41d2896aff/reticulum/sideband create $$(python setup.py --getversion):dist --name sideband
+
+
+upload-pip:
@echo Ready to publish release, hit enter to continue
@read VOID
@echo Uploading to PyPi...

diff --git a/setup.py b/setup.py
index ee4fc288..99efb017 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,6 @@
import os
import re
+import sys
import setuptools
from pathlib import Path
@@ -35,6 +36,10 @@ def get_variant() -> str:
__version__ = get_version()
__variant__ = get_variant()
+if "--getversion" in sys.argv:
+ print(__version__, end="")
+ exit(0)
+
def glob_paths(pattern):
out_files = []
src_path = os.path.join(os.path.dirname(__file__), "kivymd")


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────